<?php
App::uses('AppHelper', 'View/Helper');

class CommonHelper extends AppHelper {

    /**
     * get list building
     * @return type 
     */
    public function listBulding() {
        App::import("Model", "Building");  
        $model = new Building();  
        return $model->getListBuilding();
    }
    
    /**
     * 
     */
    public function listCustomer($is_search = false){
        App::import("Model", "Customers");  
        $model = new Customers();  
        return $model->getListCustomer($is_search);
    }
    /*
    public function listCamera(){
         App::import("Model", "Camera");  
         $user = CakeSession::read("Auth.User");
         $model=new Camera();
         return $model->getListCamera($user['CustId']);
         
    }*/
    
    /**
     * 
     */
    public function getListFrame(){
        return array(
            1 => 1,
            3 => 3,
            5 => 5,
            10 => 10,
            15 => 15,
            30 => 30
        );
    }
    
    /**
     * 
     */
    public function getListResolution(){
        return array(
            'N640x480' => 'N640x480',
            'N1280x720' => 'N1280x720'
        );
    }
}
